//
//  MPPrivacyController.m
//  MarkPlatform
//
//  Created by 敖然 on 2017/12/23.
//  Copyright © 2017年 AT. All rights reserved.
//

#import "MPPrivacyController.h"
#import "MPPrivacyView.h"

@interface MPPrivacyController ()

@property (nonatomic, strong) UIScrollView *scrollView;
@property (nonatomic, strong) MPPrivacyView *privacyView;

@end

@implementation MPPrivacyController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self showNavTitle:@"隐私条款" backItem:YES];
    
    [self.view addSubview:self.scrollView];
    [self.scrollView addSubview:self.privacyView];
    
    [self.scrollView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.bottom.left.right.offset(0);
    }];
    [self.privacyView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.right.bottom.equalTo(@0);
        make.width.equalTo(@(SCREEN_WIDTH));
    }];
}

#pragma mark - getters
- (UIScrollView *)scrollView {
    if (!_scrollView) {
        _scrollView = [[UIScrollView alloc] init];
        _scrollView.alwaysBounceVertical = YES;
    }
    return _scrollView;
}
- (MPPrivacyView *)privacyView {
    if (!_privacyView) {
        _privacyView = [[[NSBundle mainBundle] loadNibNamed:@"MPPrivacyView" owner:nil options:nil]firstObject];
    }
    return _privacyView;
}



@end
